.standard-form-card {
  .standard-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 0 24px;
    
    &-title {
      h3 {
        margin-bottom: 8px;
        color: rgba(0, 0, 0, 0.85);
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
      }
      
      .standard-form-header-subtitle {
        color: rgba(0, 0, 0, 0.45);
        font-size: 14px;
        line-height: 1.5;
      }
    }
    
    &-extra {
      margin-left: 16px;
    }
  }

  .standard-form {
    padding: 24px;
    
    .ant-form-item {
      margin-bottom: 24px;
      
      &-label {
        font-weight: 500;
        
        label {
          height: 32px;
          color: rgba(0, 0, 0, 0.85);
        }
      }
      
      &-extra {
        margin-top: 4px;
        color: rgba(0, 0, 0, 0.45);
      }
    }

    // 必填项星号样式
    .ant-form-item-required::before {
      display: inline-block;
      margin-right: 4px;
      color: #ff4d4f;
      font-size: 14px;
      line-height: 1;
      content: '*';
    }

    // 错误提示样式
    .ant-form-item-explain {
      min-height: 24px;
      color: #ff4d4f;
      
      &-error {
        margin-top: 4px;
      }
    }
  }

  // 提交按钮区域样式
  .standard-form-submitter {
    &-bottom {
      margin-top: 32px;
      padding-top: 24px;
      text-align: center;
      border-top: 1px solid #f0f0f0;
    }

    &-right {
      margin-top: 32px;
      text-align: right;
    }

    .ant-btn {
      min-width: 100px;
      
      &:not(:last-child) {
        margin-right: 16px;
      }
    }
  }
}

// 响应式布局
@media screen and (max-width: 576px) {
  .standard-form-card {
    .standard-form-header {
      flex-direction: column;
      
      &-extra {
        margin-left: 0;
        margin-top: 16px;
      }
    }

    .standard-form {
      padding: 16px;
    }

    .standard-form-submitter {
      &-bottom,
      &-right {
        text-align: center;
      }

      .ant-btn {
        width: 100%;
        margin-bottom: 16px;
        
        &:not(:last-child) {
          margin-right: 0;
        }
      }

      .ant-space {
        display: block;
      }
    }
  }
}

// 紧凑模式
.standard-form-compact {
  .ant-form-item {
    margin-bottom: 16px;
  }

  .standard-form-submitter {
    &-bottom {
      margin-top: 24px;
      padding-top: 16px;
    }

    &-right {
      margin-top: 24px;
    }
  }
}

// 内联表单项样式
.standard-form-inline {
  .ant-form-item {
    display: flex;
    
    .ant-form-item-label {
      flex: 0 0 auto;
      margin-right: 16px;
      text-align: right;
    }
    
    .ant-form-item-control {
      flex: 1;
    }
  }
}